Skip to content

Add authentication#2

Open
iceniveth wants to merge 8 commits intomasterfrom
ken/auth
Open

Add authentication#2
iceniveth wants to merge 8 commits intomasterfrom
ken/auth

Conversation

@iceniveth
Copy link
Copy Markdown
Owner

@iceniveth iceniveth commented Sep 1, 2023

  • Create a migration for users table, ensure that email is unique, add index to email so that looks up will be quicker on large datasets.
  • Install dependencies bcryptjs and jsonwebtoken.
  • Generate a JWT_SECRET using require('crypto').randomBytes(32).toString('base64'); and then place that in the capstone/backend/.env.

Sample diagram

@iceniveth iceniveth force-pushed the ken/auth branch 5 times, most recently from 1182169 to f7cd682 Compare September 1, 2023 11:30
@iceniveth iceniveth force-pushed the ken/auth branch 3 times, most recently from 91171f8 to 5727484 Compare September 3, 2023 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant